package top.kaoshanji.p1ch04a;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Locale;

/**
 * 代码清单 p1ch04a-07：Locale.Builder类的使用示例
 * author kaoshanji
 * ^_^
 * create time 2025/1/15 16:19
 */
public class LocaleBuilderExample01 {

    private static final Logger logger = LogManager.getLogger(LocaleBuilderExample01.class);

    public static void main(String[] args) {
        logger.info("...代码清单 p1ch04a-07：Locale.Builder类的使用示例...");

        Locale locale = new Locale.Builder().setLanguage("zh").setRegion("CN").setExtension('m', "myext").build();
        System.out.println(locale.toLanguageTag());

    }

}
